#ifndef UART_READ_WORK_H
#define UART_READ_WORK_H
#include <QObject>
#include <QThread>
#include <QDebug>
#include "uart_core.h"
namespace UartNamespace {
class Uartcore;
}
namespace UartNamespace {
#define UART_DATA_READ_READY (0x01)
class Worker : public QObject
{
    Q_OBJECT
public:
    UartNamespace::Uartcore* uart_core_ = nullptr;
    Worker(QObject* parent = nullptr){ (void)parent;}
    void SetUartCoreObj(Uartcore* uart_core);
    //自定义发送的信号
signals:
    void resultReady(const int result);
    //自定义槽
public slots:
    //doWork定义了线程要执行的操作
    void doWork(int parameter);
private:

};
}
#endif // UART_READ_WORK_H

